<?php
// 获取当前用户登录信息
    if(!session_id()){
        session_start();
    }

    if(isset($_SESSION['user_info'])){
        $user_info = $_SESSION['user_info'];
        $userName = $user_info->user_Name;            //用户昵称
        $userID = $user_info->user_ID;                //用户ID 
        $tel = $user_info->user_Phone;                //联系方式
        $pwd = $user_info->user_Password;                 //密码
        $status = $user_info->user_Status;               //用户状态
    }
?>